#include "JCommitConflict.h"
#include "JSerialize.h"


int JCommitConflict::PackStubMessage(JInOutPut& _strea,int& _allSize)
{
    int selfSize = 0,classSize = 0;
    JSerialize::SerializeHead(_strea,selfSize,classSize);
    JSerialize::Serialize(_strea,operateResult,classSize);
    JSerialize::Serialize(_strea,message,classSize);
    return JSerialize::SerializeTail(_strea,_allSize,selfSize,classSize);
}
int JCommitConflict::UnPackStubMessage(JInOutPut& _strea)
{
    int classSize = JSerialize::ReSerializeHead(_strea);
    operateResult = (OperateResult)JSerialize::ReSerializeInt(_strea);
    message = JSerialize::ReSerializeString(_strea);
    return classSize;
}